

function init(){
	$("#form0").form(function(form) {
		$.post($(form).form("getUrl", "sys/department"), $(form).form("getSerialize"), function(data) {
			if (data.success) {
				var opener = top.__t_tabGetOpenerWindow(window.name);
				if (opener) {
					opener.__g_reloadData();
					$.messagebox.alert($(form).form("getMsg","成功"), "success", function() {
						top.__t_tabClose(window.name);
					});

				}

			}else {
				$.messagebox.alert(data.returnMessage,"error");
			}
		}, "json").error(function(){
			alert("系统异常");
		});
	});
}